import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/api/white/blogList',
    method: 'POST',
    data
  })
}

export function blogDetail(data) {
  return request({
    url: '/api/white/blogDetail',
    method: 'POST',
    data
  })
}

export function getClassList(data) {
  return request({
    url: "/api/white/getClassList",
    method: "POST",
    data
  });
}

export function adminInfo(data) {
  return request({
    url: "/api/white/getUserInfo",
    method: "POST",
    data
  });
}

//点赞 
export function likeBlog(data) {
  return request({
    url: "/api/white/likeBlog",
    method: "POST",
    data
  });
}

//获取留言板列表 
export function getVoiceListBybid(data) {
  return request({
    url: "/api/comments/getCommentsList",
    method: "POST",
    data
  });
}

//发表留言
export function sendVoice(data) {
  return request({
    url: "/api/comments/addComment",
    method: "POST",
    data
  });
}
